package top.chukongxiang.monitorservice.model.constant;

import java.util.regex.Pattern;

/**
 * @author 楚孔响
 * @version 1.0
 * @date 2023/10/26 14:11
 */
public interface RegxConst {

    Pattern IPV4 = Pattern.compile("^(?:1[0-9][0-9]\\.|2[0-4][0-9]\\.|25[0-5]\\.|[1-9][0-9]\\.|[0-9]\\.){3}(?:1[0-9][0-9]|2[0-4][0-9]|25[0-5]|[1-9][0-9]|[0-9])$");

    Pattern PORT = Pattern.compile("^([1-9]|[1-9]\\d{1,3}|[1-6][0-5][0-5][0-3][0-5])$");

}
